<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $model common\models\Expert\Expert */

$this->title = '';
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '专家列表'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/exp-menu') ?>
<?php $this->endBlock(); ?>
<div class="expert-view">

    <!-- <h1><?= Html::encode($this->title) ?></h1> -->

    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'username',
            'password',
            'sex',
            'phone',
            'zhaopian',
            'telephone',
            'email:email',
            'compamy',
            'zhiwu',
            'birthday',
            'comefrom',
            'bnumber',
            'loc_town',
            'chengguo',
            'reason',
        ],
    ]) ?>

</div>
